/*
 * @Author: your name
 * @Date: 2021-06-18 08:12:27
 * @LastEditTime: 2021-06-18 08:14:57
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \618\liufan\src\mock\index.js
 */
import Mock from "mockjs"

const res = Mock.mock({
    "list|10": [{
        id: "@id",
        title: "@ctitle",
        img: "@image(100x100,@color)",
        info: "@cword(10,20)",
    }]
})

Mock.mock('/list', () => {
    return ({
        code: 200,
        list: res.list
    })
})